<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>昵称</title>
	</head>
	<body>
		
		<form action="">
			
			昵称：<input type="text" />
		</form>
		
		<script type="text/javascript">
			var ipt=document.querySelector('input')
			ipt.oninput=function(){
			//console.log(this.value);获取输入框输入的内容
				
				
				
			}
			
			
			
		</script>
		
		
		
	</body>
</html>
